package com.xinbochuang.machine.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinbochuang.machine.admin.domain.MacRoomResource;
import com.xinbochuang.machine.admin.domain.MacRoomResourceCount;
import com.xinbochuang.machine.admin.domain.MacRoomResourceView;
import com.xinbochuang.machine.common.domain.TableDataInfo;

import java.util.List;
import java.util.Map;

/**
 * @author 黄晓鹏
 * @date 2020-12-11
 */
public interface IMacRoomResourceViewService extends IService<MacRoomResourceView> {

    TableDataInfo selectMacRoomResourceData(MacRoomResource macRoomResource);

    IPage<MacRoomResourceView> listByPage(MacRoomResourceView macRoomResourceView);

    Map selectMacRoomResourceDataByCharts(MacRoomResource macRoomResource);

    /**
     * 机房资源统计
     *
     * @return 结果
     */
    List<MacRoomResourceCount> resourceCount();

    /**
     * 机房资源统计数量
     *
     * @return 结果
     */
    Long resourceTotal();
}
